package me.jessyan.mvparms.demo.mvp.ui.activity.car;

import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;

import com.jess.arms.base.BaseActivity;
import com.jess.arms.di.component.AppComponent;

import butterknife.BindView;
import me.jessyan.mvparms.demo.R;
import me.jessyan.mvparms.demo.mvp.ui.widget.CustomIntColorChangeTextView;
import me.jessyan.mvparms.demo.mvp.ui.widget.CustomToolbar;

public class OrderDetailActivity extends BaseActivity {

    @BindView(R.id.toolbar)
    CustomToolbar toolbar;
    @BindView(R.id.total_ctv)
    CustomIntColorChangeTextView totalCtv;

    @Override
    public void setupActivityComponent(@NonNull AppComponent appComponent) {

    }

    @Override
    public int initView(@Nullable Bundle savedInstanceState) {
        return R.layout.activity_order_detail;
    }

    @Override
    public void initData(@Nullable Bundle savedInstanceState) {

        toolbar.setListener(new CustomToolbar.ToolbarListener() {
            @Override
            public void onLeftBack() {
                finish();
            }

            @Override
            public void onRightBack() {

            }
        });
        totalCtv.setTextIntColor("-40元","#F66440");
    }
}
